<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title>58链车-首页</title>
<link rel="stylesheet" href="/Public/App/css/swiper-3.4.1.min.css">
<link rel="stylesheet" href="/Public/App/css/common.css">
<link rel="stylesheet" href="/Public/App/css/index.css">
<script src="/Public/App/js/zepto-1.2.0.min.js"></script>
<script src="/Public/App/js/swiper-3.4.1.zepto.min.js"></script>
<script src="/Public/App/js/common.js"></script>
<script src="/Public/App/js/index.js"></script>
</head>
<body>
<!-- header start -->
    <header class="header">
        <div class="header-search clearfix">
            <a class="header-logo" href="#"></a>
            <div class="header-search-wrap clearfix">
                <a class="header-search-city" href="/index.php?m=App&c=Index&a=listcity"><?php echo (session('mycity')); ?>&nbsp;</a>
                <button id="header-search-btn" class="header-search-btn">搜索您想要的车</button>
            </div>
        </div>
        <div id="banner-slide" class="banner-slide swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><a href="#"><img src="/Public/App/img/banner1.png"></a></div>
                <div class="swiper-slide"><a href="#"><img src="/Public/App/img/banner2.png"></a></div>
                <div class="swiper-slide"><a href="#"><img src="/Public/App/img/banner3.png"></a></div>
            </div>
            <div id="swiper-pagination" class="swiper-pagination"></div>
        </div>
    </header>
   
<!-- header end -->



<!-- buycar btn start -->
<a id="buycar-btn" class="buycar-btn" href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d">我要买车</a>
<!-- buycar btn end -->

<!-- select start -->
<p class="title">快速选车</p>
<ul class="select clearfix">
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=<5">5万以下</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=5-10">5-10万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=10-15">10-15万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=15-20">15-20万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=20-25">20-25万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=25-40">25-40万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=40-60">40-60万</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=>60">60万以上</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=大众"><span class="volkswagen"></span>大众</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=雪佛兰"><span class="chevrolet"></span>雪佛兰</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=福特"><span class="ford"></span>福特</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=标致"><span class="peugeot"></span>标致</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=别克"><span class="buick"></span>别克</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=现代"><span class="hyundai"></span>现代</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&br=丰田"><span class="toyota"></span>丰田</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d"><span class="more">更多品牌</span></a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&mo=SUV">SUV</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&mo=MPV">MPV</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&mo=跑车">跑车</a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&mo=轿车">轿车</a>
	</li>
</ul>
<a class="all-car" href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d">全部车源&gt;&gt;</a>
<!-- select end -->

<!-- hot start -->
<p class="title">热门车源</p>
<ul class="hot clearfix">
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&lo=<2"><img src="/Public/App/img/hot1.jpg"></a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&pr=<5"><img src="/Public/App/img/hot2.jpg"></a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&wat=1"><img src="/Public/App/img/hot3.jpg"></a>
	</li>
	<li>
		<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&mo=MPV"><img src="/Public/App/img/hot4.jpg"></a>
	</li>
</ul>
<!-- hot end -->

<!-- guess start -->
<p class="title">为您推荐</p>
<ul class="guess clearfix">
<?php if(is_array($recommend)): $k = 0; $__LIST__ = $recommend;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$car): $mod = ($k % 2 );++$k;?><li>
        <a href="/index.php?m=App&c=Car&a=detail&id=<?php echo ($car["id"]); ?>">
            <?php $_result=explode(',',$car['imgs']);if(is_array($_result)): $i = 0; $__LIST__ = array_slice($_result,0,1,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vx): $mod = ($i % 2 );++$i;?><img src="/Public/Uploads/img/<?php echo ($vx); ?>_cn.png"><?php endforeach; endif; else: echo "" ;endif; ?>
            <p class="guess-title"><?php echo ($car["na"]); ?></p>
            <p class="guess-info"><?php echo ($car["ds"]); ?></p>
            <p class="guess-price"><?php echo ($car["cp"]); ?>万<s>新车<?php echo ($car["newprice"]); ?>万</s></p>
        </a>
    </li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<a class="all-car" href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d">全部车源&gt;&gt;</a>
<!-- guess end -->

<!-- footer start -->
<footer class="footer">
	<ul class="footer-links">
		<li>
			<a href="/index.php?m=App&c=Car&a=appqr">APP下载</a>
		</li>
	</ul>
	<p>58链车专注二手车</p>
	<p>服务电话: <a href="tel:400-100-1313">400-100-1313</a></p>
	<p>售后服务专线: <a href="tel:400-100-1313">400-100-1313</a></p>
</footer>
<footer class="footer-company">四川伍捌链车汽车销售服务有限公司<br>四川省成都市天府新区天府大道南段2039号和美.海堂中心（天府创客）<br>Copyright 2017 www.58lianche.com All Rights Reserved<br>蜀ICP备16031245<br>
</footer>
<!-- footer end -->

<!-- search start -->
<div id="search" class="search-wrap">
	<div class="search-header clearfix">
		<button id="search-close" class="search-close"></button>
		<div class="search-input">
			<input id="search-input" type="text">
		</div>
		<button  id="search-do" class="search-btn"></button>
	</div>
	<div id="history" class="history-wrap">
		<ul class="history">
            <?php if(is_array($keysearchlog)): $k = 0; $__LIST__ = $keysearchlog;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$key): $mod = ($k % 2 );++$k;?><li><a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&ke=<?php echo ($key["name"]); ?>"><?php echo ($key["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
        <?php if(empty($keysearchlog)): else: ?><a id="history-clear" class="history-clear" href="javascript:void(0)">清除历史记录</a><?php endif; ?>
       
</div>
	<p class="search-title">热销车系：</p>
	<ul class="search-hot clearfix">
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=朗逸">朗逸</a>
		</li>
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=高尔夫">高尔夫</a>
		</li>
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=速腾">速腾</a>
		</li>
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=福克斯">福克斯</a>
		</li>
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=大众POLO">大众POLO</a>
		</li>
		<li>
			<a href="/index.php?m=App&c=Car&a=getlist&ci=<?php echo (session('ci')); ?>&pl=<?php echo (session('mycity')); ?>&pa=0&ma=20&or=d&se=科鲁兹">科鲁兹</a>
		</li>
	</ul>
</div>
<!-- search end -->

<button id="totop" class="totop"></button>
</body>
</html>